<template>
	<scroll-view scroll-y="true" class="report-all">
		<view class="report-title">
			<view class="report-title-1">
				<image src="https://z3.ax1x.com/2021/04/13/crj9BD.png" mode="" @click="back"></image>
				<text>智能检测</text>
				<text class="report-fenge">|</text>
				<text class="carType">{{loveCar.mycarType}}</text>
				<image class="xiala" src="https://z3.ax1x.com/2021/04/13/crzKHO.png" mode=""></image>
			</view>
			<view class="report-title-2">
				<view class="report-title-2-left">
					<view class="currentLicheng">
						当前里程
					</view>
					<view class="licheng">
						100km
					</view>
				</view>
				<view class="report-title-2-right">
					<view class="right-score">
						<image src="https://z3.ax1x.com/2021/04/13/csprXq.png" mode=""></image>
						<text>82分</text>
					</view>
					<view class="other">
						打败了92%的用户
					</view>
				</view>
			</view>
			<view class="report-content">
				<view class="report-content-1">
					<view class="report-content-1-title">
						<text class="report-xiangmu">保养项目</text>
						<view class="report-1-record">
							添加保养记录
						</view>
					</view>
					<view class="report-content-1-all">
						<view class="report-content-1-left">
							<image src="https://z3.ax1x.com/2021/04/13/csxfRs.png" mode=""></image>
						    <text>优秀</text>
						</view>
						<view class="report-content-1-right">
							<view class="report-next">
								<text>下次保养时间/里程：</text>
								<view>
									2021年06月01日/10000km
								</view>
							</view>
							<view class="report-next">
								<text>建议保养：</text>
								<view class="baoyang-xiangmu">
									小保养项目 发动机内部养护 燃油系统养护 发动机舱清洗等9项
								</view>
							</view>
						</view>
					</view>
					<view class="report-content-1-btn">
						<image class="click" src="https://z3.ax1x.com/2021/04/12/cBWBAe.png" mode=""></image>
						<text>开启保养提醒</text>
						<image class="jiantou" src="https://z3.ax1x.com/2021/04/12/cBWDtH.png" mode=""></image>
					</view>
					<view class="report-content-1-collapse">
						<view>
							<!-- <uni-section type="line"></uni-section>
							<uni-collapse ref="add" class="warp" @change="change">
								<uni-collapse-item  :open="false" 
								 :disabled="false" title="展开无需处理项[7]">
									<text class="content"> -->
										<!-- <view class="report-1-step">
											<text class="step-1">轮胎</text>
											<view class="step-2">
												<text>轮胎已行使14年9个月</text>
												<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png" mode=""></image>
											</view>
											<view class="step-3">
												<view class="jindu">
													<view class="progress-box">
														<progress percent="50" active stroke-width="3" backgroundColor="#f9f9f9" activeColor="#0170FF"/>
													</view>
													<view class="jindu-1">
														更换
													</view>
													<view class="jindu-2">
														状态健康
													</view>
													<view class="jindu-3">
														健康
													</view>
												</view>
											</view>
										</view> -->
									<!-- </text> -->
								<!-- </uni-collapse-item>
							</uni-collapse> -->
						</view>
					</view>
				</view>
				<view class="report-content-2">
					<view class="report-content-2-title">
						<text class="report-xiangmu">轮胎项目</text>
						<view class="report-2-record">
							添加换胎记录
						</view>
					</view>
					<view class="report-2-step">
						<text class="step-1">轮胎</text>
						<view class="step-2">
							<text>轮胎已行使14年9个月</text>
							<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png" mode=""></image>
						</view>
						<view class="step-3">
							<view class="jindu">
								<view class="progress-box">
									<progress percent="50" active stroke-width="3" backgroundColor="#f9f9f9" activeColor="#0170FF"/>
								</view>
								<view class="jindu-1">
									更换
								</view>
								<view class="jindu-2">
									状态健康
								</view>
								<view class="jindu-3">
									健康
								</view>
							</view>
						</view>
						<view class="step-4">
							查看轮胎检查指南
						</view>
					</view>
				</view>
				<view class="report-content-3">
					<view class="report-content-3-title">
						<text class="report-xiangmu">轮胎项目</text>
						<view class="more">
							<text>更多</text>
							<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png"></image>
						</view>
					</view>
					<text class="report-3-record">你还没有检测记录哦！</text>
				</view>
			</view>
		</view>
	</scroll-view >
</template>

<script>
	export default {
		data() {
			
			return {
				// list: listData,
				extraIcon: {
					color: '#4cd964',
					size: '26',
					type: 'image'
				},
				id: 2,
				loveCar:{}
			}
		},
		onLoad() {
			this.loveCar=JSON.parse(uni.getStorageSync('loveCar')) 
		},
		methods:{
			change(e) {},
			changeZhankai(){
				console.log(111)
			},
			Zhankai(){
				this.isZhankei=true
			},
			back(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.report-all{
		background-color: #f9f9f9;
		height: 100vh;
		.report-title{
			width: 100%;
			height: 520rpx;
			box-sizing: border-box;
			padding-top: 80rpx;
			background-image: linear-gradient(to right,#1FA6FC,#0170FF);
			.report-title-1{
				color: white;
				display: flex;
				align-items: center;
				font-weight: bold;
				image{
					width: 64rpx;
					height: 64rpx;
				}
				.report-fenge{
					margin-left:20rpx
				}
				.report-title-1-1{
					margin-left: 20rpx;
				}
				.carType{
					font-size: 28rpx;
					margin-left:20rpx ;
					margin-right: 20rpx;
					font-weight: normal;
				}
				.xiala{
					width: 32rpx;
					height: 20rpx;
				}
			}
			.report-title-2{
				width: 100vw;
				height: 300rpx;
				color: white;
				display: flex;
				justify-content: space-between;
				align-items: flex-end;
				.report-title-2-left{
					margin-left: 20rpx;
					.licheng{
						font-size: 36rpx;
						margin-bottom: 20rpx;
					}
					.currentLicheng{
						font-size: 28rpx;
						// margin-bottom: 20rpx;
					}
				}
				.report-title-2-right{
					margin-right: 20rpx;
					.other{
						font-size: 28rpx;
						margin-bottom: 20rpx;
					}
					.right-score{
						position: relative;
						image{
							width: 200rpx;
							height: 184rpx;
							position: absolute;
							top: -190rpx;
						}
						text{
							position: absolute;
							top: -130rpx;
							left: 60rpx;
							font-weight: bold;
							font-size: 40rpx;
						}
					}
				}
			}
		    .report-content{
				width:94vw;
				margin: 0rpx auto;
				.report-content-1{
					width: 100%;
					// height: 500rpx;
					background-color: white;
					margin-bottom: 30rpx;
					border-radius: 30rpx;
					padding-bottom:30rpx ;
					.report-content-1-title{
						display: flex;
						height: 60rpx;
						justify-content: space-between;
						align-items: center;
						padding: 50rpx 30rpx 0rpx 30rpx;
						box-sizing: border-box;
						.report-xiangmu{
							font-size: 36rpx;
						}
						.report-1-record{
							width: 200rpx;
							height: 60rpx;
							line-height: 60rpx;
							text-align: center;
							background-color: #FFE5E5;
							color:#FF2F2F ;
							border-radius: 30rpx;
							font-size: 28rpx;
						}
					}
					.report-content-1-all{
						width: 100%;
						// height: 300rpx;
						margin-top: 50rpx;
						box-sizing: border-box;
						justify-content: space-between;
						display: flex;
						.report-content-1-left{
							width: 25%;
							height: 100%;
							margin-left: 20rpx;
							position: relative;
							image{
								width: 170rpx;
								height: 170rpx;
							}
							text{
								color: #0170FF;
								font-size: 38rpx;
								font-weight: bold;
								position: absolute;
								left: 45rpx;
								top: 65rpx;
							}
						}
						.report-content-1-right{
							width: 70%;
							height: 100%;
							.report-next{
								margin-bottom: 30rpx;
								text{
									color: gray;
									font-size: 28rpx;
								}
								.baoyang-xiangmu{
									line-height: 1.5;
								}
							}
						}
					}
					.report-content-1-btn{
						width: 400rpx;
						height: 70rpx;
						background-color:#FF5401 ;
						border-radius: 30rpx;
						color:white ;
						display: flex;
						align-items: center;
						justify-content: center;
						margin: 20rpx auto;
						.click{
							width: 40rpx;
							height: 40rpx;
							margin-right: 20rpx;
						}
						.jiantou{
							width: 18rpx;
							height: 25rpx;
							margin-left: 20rpx;
						}
					}
					.report-content-1-collapse{
						width: 100%;
						margin: 0 auto;
						// .report-1-step{
						// 	padding-top: 50rpx;
						// 	height: 300rpx;
						// 	padding-left: 30rpx;
						// 	margin-bottom: 50rpx;
						// 	background-color: white;
						// 	border-radius: 30rpx;
						// 	.step-1{
						// 		font-size: 36rpx;
						// 	}
						// 	.step-2{
						// 		image{
						// 			width: 18rpx;
						// 			height: 22rpx;
						// 			vertical-align: middle;
						// 			margin-left: 20rpx;
						// 		}
						// 	}
						// 	.step-3{
						// 		height: 100rpx;
						// 		padding-right: 100rpx;
						// 		padding-left: 80rpx;
						// 		margin-top: 50rpx;
						// 		.jindu{
						// 			position: relative;
						// 			.jindu-1{
						// 				position: absolute;
						// 				left: -80rpx;
						// 				top: -16rpx;
						// 				color: gray;
						// 				font-size: 28rpx;
						// 			}
						// 			.jindu-2{
						// 				position: absolute;
						// 				left: 180rpx;
						// 				color: #0170FF;
						// 				width: 140rpx;
						// 				height: 60rpx;
						// 				line-height: 60rpx;
						// 				text-align: center;
						// 				background-color: #E1F3FF;
						// 				top: 30rpx;
						// 				font-size: 28rpx;
						// 			}
						// 			.jindu-3{
						// 				position: absolute;
						// 				right: -70rpx;
						// 				top: -16rpx;
						// 				color: gray;
						// 				font-size: 28rpx;
						// 			}
						// 		}
						// 	}
						// }
					}
				}
				.report-content-2{
					width: 100%;
					// height: 500rpx;
					background-color: white;
					padding-bottom: 20rpx;
					border-radius: 30rpx;
					.report-content-2-title{
						display: flex;
						height: 60rpx;
						justify-content: space-between;
						align-items: center;
						padding: 50rpx 30rpx 0rpx 30rpx;
						box-sizing: border-box;
						.report-xiangmu{
							font-size: 36rpx;
						}
						.report-2-record{
							width: 200rpx;
							height: 60rpx;
							line-height: 60rpx;
							text-align: center;
							background-color: #FFE5E5;
							color:#FF2F2F ;
							border-radius: 30rpx;
							font-size: 28rpx;
						}
					}
					.report-2-step{
						margin-top: 50rpx;
						padding-left: 30rpx;
						margin-bottom: 50rpx;
						.step-1{
							font-size: 36rpx;
						}
						.step-2{
							image{
								width: 18rpx;
								height: 22rpx;
								vertical-align: middle;
								margin-left: 20rpx;
							}
						}
						.step-3{
							height: 100rpx;
							padding-right: 100rpx;
							padding-left: 80rpx;
							margin-top: 50rpx;
							.jindu{
								position: relative;
								.jindu-1{
									position: absolute;
									left: -80rpx;
									top: -16rpx;
									color: gray;
									font-size: 28rpx;
								}
								.jindu-2{
									position: absolute;
									left: 180rpx;
									color: #0170FF;
									width: 140rpx;
									height: 60rpx;
									line-height: 60rpx;
									text-align: center;
									background-color: #E1F3FF;
									top: 30rpx;
									font-size: 28rpx;
								}
								.jindu-3{
									position: absolute;
									right: -70rpx;
									top: -16rpx;
									color: gray;
									font-size: 28rpx;
								}
							}
						}
						.step-4{
							width: 400rpx;
							height: 60rpx;
							text-align: center;
							margin:50rpx auto 0rpx;
							line-height: 60rpx;
							border:1px solid gray;
							border-radius: 40rpx;
						}
					}
				}
				.report-content-3{
					width: 100%;
					height: 500rpx;
					margin: 30rpx auto 50rpx;
					border-radius: 30rpx;
					position: relative;
					background:url("https://z3.ax1x.com/2021/04/13/csFwyd.png") white center no-repeat;
					.report-content-3-title{
						display: flex;
						height: 60rpx;
						justify-content: space-between;
						align-items: center;
						margin-top: 30rpx;
						padding: 30rpx;
						box-sizing: border-box;
						.report-xiangmu{
							font-size: 36rpx;
						}
						.more{
								display: flex;
								color: gray;
								align-items: center;
								image{
									width: 18rpx;
									height: 22rpx;
									vertical-align: middle;
									margin-left: 20rpx;
									margin-right: 20rpx;
								}
							}
						}
					}
					.report-3-record{
						color: gray;
						position: absolute;
						bottom: 80rpx;
						left: 200rpx;
					}
			}
		}
	}
</style>
